﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace Himp.Platform.Migrations
{
    /// <inheritdoc />
    public partial class add_column_dic_Pinyincode : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<string>(
                name: "Pinyincode",
                table: "MainDataDict",
                type: "text",
                nullable: false,
                defaultValue: "");

            migrationBuilder.AddColumn<int>(
                name: "Ver",
                table: "MainDataDict",
                type: "integer",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<string>(
                name: "Pinyincode",
                table: "MainBizDict",
                type: "text",
                nullable: false,
                defaultValue: "");

            migrationBuilder.AddColumn<int>(
                name: "Ver",
                table: "MainBizDict",
                type: "integer",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<string>(
                name: "Pinyincode",
                table: "MainAttrDict",
                type: "text",
                nullable: false,
                defaultValue: "");

            migrationBuilder.AddColumn<int>(
                name: "Ver",
                table: "MainAttrDict",
                type: "integer",
                nullable: false,
                defaultValue: 0);
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "Pinyincode",
                table: "MainDataDict");

            migrationBuilder.DropColumn(
                name: "Ver",
                table: "MainDataDict");

            migrationBuilder.DropColumn(
                name: "Pinyincode",
                table: "MainBizDict");

            migrationBuilder.DropColumn(
                name: "Ver",
                table: "MainBizDict");

            migrationBuilder.DropColumn(
                name: "Pinyincode",
                table: "MainAttrDict");

            migrationBuilder.DropColumn(
                name: "Ver",
                table: "MainAttrDict");
        }
    }
}
